package com.xbts.system.module.payment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xbts.common.core.domain.CnWalletLog;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;

/**
 * 用户钱包日志Mapper接口
 * 
 * @author xbts
 * @date 2023-08-04
 */
@Repository("CnWalletLogMapper")
public interface CnWalletLogMapper extends BaseMapper<CnWalletLog> {


    @Update("update sys_user set user_wallet = #{arg1} where user_id = #{arg0}")
    void updateUserBalance(long userId, BigDecimal price);
}
